<template>
  <div>
    <button @click="onVuexClick">存储到Vuex</button>
  </div>
</template>

<script>
import store from '@/store'
export default {
  name: 'ConditionView',
  methods: {
    onVuexClick () {
      const ret = [
        { name: '张三', age: 18 },
        [11]
      ]
      store.commit('condition/setName', ret)
      this.$router.push('/readCondition')
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
